/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PDF;
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.FontFactory;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import com.lowagie.text.Document;
import com.lowagie.text.pdf.PdfWriter;
/**
 *
 * @author Alice
 */
public class PDFRicevuta {
    Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream("hello.pdf"));
document.open();
Paragraph p = new Paragraph("This is not an helloworld!", FontFactory.getFont(FontFactory.HELVETICA,18));
p.setAlignment(Element.ALIGN_CENTER);
document.add(p);
document.close();
}
